﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Educate0825;

namespace ConvertTest
{
    [TestClass]
    public class ConverterTest
    {
        [TestMethod]
        public void ConvertGramToOunces1()
        {
            Converter c = new Converter(1);
            Assert.AreEqual(0.0353, c.Ounces);
        }
        [TestMethod]
        public void ConvertGramToOunces2()
        {
            Converter c = new Converter(1000);
            Assert.AreEqual(3.53, c.Ounces);
        }
        [TestMethod]
        public void ConvertGramToOunces3()
        {
            Converter c = new Converter(50000);
            Assert.AreEqual(3.66843, c.Ounces);
        }
        [TestMethod]
        public void ConvertGramToOunces4()
        {
            Converter c = new Converter(0);
            Assert.AreEqual(0, c.Ounces);
        }
        [TestMethod]
        public void ConvertGramToPounds1()
        {
            Converter c = new Converter(1);
            Assert.AreEqual(0, c.Pounds);
        }
        [TestMethod]
        public void ConvertGramToPounds2()
        {
            Converter c = new Converter(1000);
            Assert.AreEqual(2, c.Pounds);
        }
        [TestMethod]
        public void ConvertGramToStones1()
        {
            Converter c = new Converter(1);
            Assert.AreEqual(0, c.Stones);
        }
        [TestMethod]
        public void ConvertGramToStones2()
        {
            Converter c = new Converter(50000);
            Assert.AreEqual(7, c.Stones);
        }
        [TestMethod]
        public void ConvertGramToKilo1()
        {
            Converter c = new Converter(0);
            Assert.AreEqual(0, c.Kilograms);
        }
        [TestMethod]
        public void ConvertGramToKilo2()
        {
            Converter c = new Converter(1111);
            Assert.AreEqual(1, c.Kilograms);
        }
        [TestMethod]
        public void ConvertGramToGrams1()
        {
            Converter c = new Converter(1);
            Assert.AreEqual(1, c.Grams);
        }
        [TestMethod]
        public void ConvertGramToGrams2()
        {
            Converter c = new Converter(1111);
            Assert.AreEqual(111, c.Grams);
        }
    }
}
